package org.hako.recite.word.test;

import java.util.HashSet;
import java.util.Set;

/**
 * Word test result.
 * 
 * @author xnnyygn
 */
public class WordTestResult {
   
    private Set<Integer> wrongs;

    /**
     * Create
     */
    public WordTestResult() {
        super();
        wrongs = new HashSet<Integer>();
    }
    
    /**
     * Add wrong.
     * 
     * @param index 
     */
    public void addWrong(int index){
        wrongs.add(Integer.valueOf(index));
    }
    
    /**
     * Get wrong word index set.
     * 
     * @return 
     */
    public Set<Integer> getWrongs(){
        return wrongs;
    }
    
    /**
     * Clear wrongs.
     */
    public void clearWrongs(){
        wrongs.clear();
    }
}
